
Page({
  data: {
    data: {}
  },

  onLoad(options) {

  },

  onInput(e) {
    const { key } = e.currentTarget.dataset;
    const name = 'data.' + key;
    this.setData({ [name]: e.detail.value });
  },

  onConfirm() {
    console.log(this.data.data);
    // this.setData({  });
  },
})